package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easy.common.bean.Customers;
import com.easy.common.bean.Product;

import java.util.List;

/**
 * 客户业务处理
 */
public interface ICustomerService {
    /**
     * 添加客户
     * @param customers
     * @return
     */
    Customers insert(Customers customers);

    /**
     * 修改客户信息
     * @param customers
     * @return
     */
    Customers update(Customers customers);

    /**
     * 删除客户
     * @param id
     * @return
     */
    int delete(Integer id);

    /**
     * 通过ID查询客户信息
     * @param id
     * @return
     */

    Customers getByID(Integer id);



    /**
     * 通过分页查询客户信息
     * @param page
     * @param customers
     * @return
     */

    IPage<Customers> getListByPage(IPage page, Customers customers);

    /**
     * 全部查询
     * @param customers
     * @return
     */
    List<Customers> getList(Customers customers);

}
